<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <s:include value="/common/base.jsp"/>
  <base href="<%=request.getAttribute("basepath")%>"/>
  
  <meta http-equiv="Refresh" content="60;url=common/view-left-bar.eos">
  <link rel="stylesheet" type="text/css" href="template/layout.css">
  <style>
   .flash-one {color: #66FF00}
   .flash-two {color: #FF3300}
  </style>
</head>

<script language="JavaScript">
<!--

function blink(element){
  var html = '';
  if(document.all)
  {
    html += 'var el = document.all.' + element + ';';
  }
  else if(document.getElementById)
  {
    html += 'var el = document.getElementById("' + element + '");';
  }

  html += 'el.className = ' + ' el.className == "flash-one" ? "flash-two"  : "flash-one" ';

  if(document.all || document.getElementById )
  {
      setInterval(html, 1000);
  }
}

function key(){

}
document.onkeydown=key;
if (window.Event)
document.captureEvents(Event.MOUSEUP);
//swordmaple javascript article.
//from www.jx165.com
function nocontextmenu(){
event.cancelBubble = true
event.returnValue = false;
return false;}
function norightclick(e){
if (window.Event){
if (e.which == 2 || e.which == 3)
return false;}
else
if (event.button == 2 || event.button == 3){
event.cancelBubble = true
event.returnValue = false;
return false;}
}
//禁止右键
document.oncontextmenu = nocontextmenu;  // for IE5+
document.onmousedown = norightclick;  // for all others
//-->
</script>

<body onload="blink('flash')" bgcolor="#5BB2DF" leftMargin="0" topMargin="0" marginwidth="0" marginheight="0" onselectstart="return false"; onpaste="return false";>
  <table cellspacing="0" width="100%" height="100%" border="0" cellpadding="0">
    <tr>
      <td valign="middle" align="center">
	      <img src="${usericon}" width= "38" height= "38" />
      </td>
      <td>
	 <table width="100%" border="0" cellpadding="0" cellspacing="0">
	 <tr>
	    <td height='19' valign='middle' class='leftbar-message' id="welcome">
	        <nobr>${username} ${greetings}！</nobr>
        </td>
	</tr>
	<tr>
	  <td height='19' valign='middle' id="viewusers" >
	      <a href="common/view-online-users.eos" target="fraContent" class="leftbar-message">
              <nobr>当前在线用户${onlinenumber} 人</nobr>
	      </a>
	  </td>
	</tr>
	<tr>
 	  <td height='19' valign='middle' class='leftbar-message'>
	    ${remind}
	  </td>
	</tr>	
	</table>
      </td>
    </tr>
  </table>
</body>
</html>